package com.huanletao.word;

import org.ofdrw.converter.ofdconverter.PDFConverter;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

public class demo3 {
    public static void main(String[] args) throws IOException {
        Path src = Paths.get("E:\\tmp\\003\\超限运输车辆通行证(1)_20231027131853.pdf");
        Path dst = Paths.get("target/convert.ofd");
        try (PDFConverter converter = new PDFConverter(dst)) {
            converter.convert(src);
        }
        System.out.println(">> " + dst.toAbsolutePath());
    }
}
